package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.common.core.constant.enums.AllAuditActionStatusEnum;
import com.engine4cloud.tdf.common.core.constant.enums.AuditBusinessTypeEnum;
import com.engine4cloud.tdf.supervision.dto.SpAuditDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "审批活动事项审核-请求对象")
public class SpAuditResultCreateDTO extends SpAuditDTO {

    /**
     * 业务类型
     */
    @Schema(description = "业务类型", example = "CHANGE_PLACE")
    private AuditBusinessTypeEnum businessType;

    /**
     * 状态
     */
    @Schema(description = "状态", example = "CREATE")
    private AllAuditActionStatusEnum status;

    public SpAuditResultCreateDTO(SpAuditDTO audit, AuditBusinessTypeEnum businessType, AllAuditActionStatusEnum status) {
        super(audit.getRybh(), audit.getLcbh(), audit.getShsm());
        this.businessType = businessType;
        this.status = status;
    }

}
